home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / os2tools / av_133 / archiver.bb2 next >
Text File  |  1992-09-20  |  7KB  |  238 lines

  1. ;ARCHIVER.BB2, archiver control file for XBBS-OS/2, XGROUP and AV
  2. ;
  3. ;format for this archiver.bb2 file (each entry has 18 lines):
  4. ;
  5. ; 1st line:  ID of archiver (like ARC, LHARC, PKZIP, etc.; human consumption)
  6. ; 2nd line:  normal extension for archives (like ZIP, ARC, LZH; note no period)
  7. ; 3rd line:  offset into file to signature
  8. ; 4th line:  list command
  9. ; 5th line:  extract command
  10. ; 6th line:  extract w/ directories command
  11. ; 7th line:  test archive command
  12. ; 8th line:  add/create command
  13. ; 9th line:  move command
  14. ;10th line:  delete command
  15. ;11th line:  signature (case sensitive, leading spaces count!
  16. ;12th line:  startlist string
  17. ;13th line:  endlist string
  18. ;14th line:  old size position  (all positions 0-based, -1 = not available)
  19. ;15th line:  new size position
  20. ;16th line:  file date position
  21. ;17th line:  number of positions in dates (for "03 June 92" would be 3)
  22. ;18th line:  file name position (absolutely required, of course)
  23. ;
  24. ;a semicolon demarks a comment.  they may appear at any point *except*
  25. ;within the 18 lines of an archiver entry.
  26. ;everything on the line after the semicolon is ignored.
  27. ;
  28. ;note that all archiver strings should include the archiver's paramters to
  29. ;prevent it from stopping for input!  also note that archive types are checked
  30. ;in order of their listing in this file.  finally, this file is set up for
  31. ;the archivers I had lying around; if yours are different versions, you may
  32. ;have to modify this file.  All archivers are OS/2 (or FAPI) versions.
  33. ;
  34. ;how archive listing works:
  35. ;
  36. ;XBBS (or AV) first tries to find a signature match.  failing that, it checks
  37. ;to see if the file might be an ARC-format file.  If the latter, READARC.CMD
  38. ;is spawned (by XBBS) with ARC as the first argument and v as the second,
  39. ;followed by the filename.  If the former, the list command is sent, followed
  40. ;by the filename.  output is redirected to a file that XBBS then displays to
  41. ;the user.  crude, but effective.  AV handles things a little more smoothly.
  42. ;
  43. ;although only the list and extract command strings are currently used by
  44. ;XBBS, include them all. someday most or all of Peeker's functionality will
  45. ;be present in XBBS-OS/2. AV likes them, too, and uses most of them now.
  46. ;
  47. ;note to XGroup DOS users:  you'll probably have to modify the ARJ and
  48. ;LHARC listings in here to work with your archivers.
  49. ;
  50. ;
  51. ;This entry is for Zoo 1.51 (also seems to work with 2.1)
  52. ;
  53. Zoo
  54. ZOO
  55. 0
  56. ZOO.EXE v
  57. ZOO.EXE xO
  58. ZOO.EXE xO/
  59. ZOO.EXE -test
  60. ZOO.Exe a
  61. ZOO.EXE aM
  62. ZOO.EXE -delete
  63. ZOO
  64. --------  --- --------  --------- --------
  65. --------  --- --------  --------- --------
  66. 0
  67. 2
  68. 3
  69. 3
  70. 7
  71. ;
  72. ;This entry is for LH2 2.11
  73. ;
  74. LHarc
  75. LZH
  76. 2
  77. LH.EXE /o l
  78. LH.EXE /o x
  79. LH.EXE /o /s x
  80. LH.EXE t
  81. LH.EXE /o a
  82. LH.EXE /o m
  83. LH.EXE /o d
  84. -lh
  85.   -------- -------- -----------------------------------------
  86.   --------          -----------------------------------------
  87. 0
  88. -1
  89. 1
  90. 1
  91. 2
  92. ;
  93. ;This entry is for PKZIP 1.01
  94. ;
  95. PK(Un)Zip
  96. ZIP
  97. 0
  98. PKZIP.EXE -v
  99. PKUNZIP.EXE -o
  100. PKUNZIP.EXE -o -d
  101. PKUNZIP.EXE -t
  102. PKZIP.EXE -a
  103. PKZIP.EXE -m
  104. PKZIP.EXE -d
  105. PK\x3\x4
  106.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  107.  ------          ------  ---                                 -------
  108. 0
  109. 2
  110. 4
  111. 2
  112. 8
  113. ;
  114. ;
  115. ;Here's an entry for ZIP 1.9/UNZIP 5.0 (available in 32-bit versions)
  116. ;with which you could replace the above PK(Un)Zip entry
  117. ;
  118. ;Zip/UnZip
  119. ;ZIP
  120. ;0
  121. ;UNZIP.EXE -lU
  122. ;UNZIP.EXE -oj
  123. ;UNZIP.EXE -o
  124. ;UNZIP.EXE -t
  125. ;ZIP.EXE -j
  126. ;ZIP.EXE -mj
  127. ;ZIP.EXE -d
  128. ;PK\x3\x4
  129. ; ------    ----    ----    ----
  130. ; ------                    -------
  131. ;0
  132. ;-1
  133. ;1
  134. ;2
  135. ;3
  136. ;
  137. ;
  138. ;This entry is for Unarj 2.10 ported by Scott Dudley
  139. ;replace begin/end strings with these for UNARJ 2.30 demo version
  140. ;------------ ---------- ---------- ----- ----------------- -------- -----------
  141. ;------------ ---------- ---------- ----- -----------------
  142. ;
  143. Arj
  144.  
  145. 0
  146. UNARJ.EXE l
  147. UNARJ.EXE e
  148. UNARJ.EXE x
  149. UNARJ.EXE t
  150.  
  151.  
  152.  
  153. \x60\xea
  154. ------------ ---------- ---------- ----- ----------------- -------- ---- ------
  155. ------------ ---------- ---------- ----- -----------------
  156. 1
  157. 2
  158. 4
  159. 1
  160. 0
  161. ;
  162. ;This entry is for ARC 5.12mpl
  163. ;replace begin/end strings with these for ARC2 (6.0)
  164. ;=================  ========  =========
  165. ;             ====  ========
  166. Arc
  167. ARC
  168. 0
  169. ARC.EXE lwn
  170. ARC.EXE ewn
  171.  
  172. ARC.EXE t
  173. ARC.EXE awn
  174. ARC.EXE mwn
  175. ARC.EXE dwn
  176. \x1a
  177. ============  ========  =========
  178.         ====  ========
  179. 1
  180. -1
  181. 2
  182. 3
  183. 0
  184. ;
  185. ;Notes on modifying/updating this file:
  186. ;
  187. ;You can add as many archivers as you like to this file.
  188. ;here are some suggestions on how to go about it:
  189. ;
  190. ;list an archive with the archiver, redirecting to a disk
  191. ;file (ex. "ARC l AFILE.ARC > TEMP.").  Load the resultant
  192. ;file into a text editor.  Clip out the startlist and endlist
  193. ;strings and paste directly into this file on the appropriate
  194. ;lines; prevents errors due to typos when copying manually.
  195. ;Count the positions of filename, date, etc. and place on the
  196. ;appropriate line.  Now run the archiver redirected to a file
  197. ;to get its help screen (ex. "ARC > TEMP." or "ZOO h > TEMP.").
  198. ;Look for the various command options (extract, list, etc.) and
  199. ;put them into the file on the appropriate lines -- remember to
  200. ;add the modifiers to prevent the archiver from stopping to ask
  201. ;questions!  You could be in deep doo-doo if it's a detached
  202. ;process.  While it may seem a pain in the arse to have to
  203. ;edit this file when an archiver changes its command structure
  204. ;or list format, at least it's something within your control;
  205. ;you don't have to wait for an update to AV.  That means if I
  206. ;die tomorrow you'll still be able to use AV for years to come.
  207. ;
  208. ;Here's an example of an ARC listing (5.12mpl, command "ARC l"):
  209. ;
  210. ;Name          Length    Date
  211. ;============  ========  =========    <--this line is start-of-list
  212. ;MAKEFILE           374  28 Nov 89
  213. ;QSORT.C          14279  29 Nov 89
  214. ;QSORT.EXE        24629  29 Nov 89
  215. ;STUFF.H            371  29 Nov 89
  216. ;        ====  ========               <--this line is end-of-list
  217. ;Total      4     39653
  218. ;
  219. ;Note the filename is in position 0, old length in position 1, and the
  220. ;date starts in position 2, with 3 parts, and there's no new length
  221. ;field (so it'd be -1).  Compare that to the archiver entry for
  222. ;ARC 5.12mpl above and you should get a feel for what all those fields
  223. ;mean.
  224. ;
  225. ;If you're adding an entirely new archive format, note that you can
  226. ;use 'C'-style \x<hexnumber> on the signature line in this file.
  227. ;For example, the \x1a in ARC 5.12mpl's signature line means AV will
  228. ;look for an ASCII 26 (text EOF marker) in position 0 (first byte, as
  229. ;indicated by ARC's line 3, the offset into a file for the signature)
  230. ;of a file to determine if it's an archive.  If line 3's offset is
  231. ;negative, AV looks from the end of the file instead of the beginning.
  232. ;You can usually figure out what an archiver's signature is by looking
  233. ;at a few archives with a file viewing program like LIST.  By all means
  234. ;send me anything new you figure out for inclusion in future releases.
  235. ;
  236. ;
  237. ;always end file with blank line or comment
  238.